﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="DemoBoundField.aspx.cs" Inherits="DemoBoundField" Title="Untitled Page" %>

<%@ Register Src="SearchInGridControl.ascx" TagName="SearchInGridControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="updUpdate" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlList" runat="server">
                <uc1:SearchInGridControl ID="ctrlSearch" TargetControlID="grdBoundField" runat="server" ExcludedFieldsCSV="EmployeeID" />
                <asp:GridView ID="grdBoundField" AutoGenerateColumns="false" runat="server">
                    <Columns>
                        <asp:BoundField DataField="EmployeeID" AccessibleHeaderText="EmployeeID" Visible="false"
                            HeaderText="Employee ID" ItemStyle-CssClass="GridFirstColumn" />
                        <asp:BoundField DataField="FirstName" AccessibleHeaderText="FirstName" HeaderText="First Name" />
                        <asp:BoundField DataField="LastName" AccessibleHeaderText="LastName" HeaderText="Last Name" />
                        <asp:BoundField DataField="ContactNo" AccessibleHeaderText="ContactNo" HeaderText="Contact Number" />
                        <asp:BoundField DataField="Address" AccessibleHeaderText="Address" HeaderText="Address" />
                    </Columns>
                </asp:GridView>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
